PROG= pkvmdump
SRCS= pkvmdump.c
SCRIPTS=pkvm
CLEANFILES+= pkvm
MAN=  pkvmdump.8 pkvm.8

LDADD= -lkvm

WARNINGS= -Wsystem-headers -Werror -Wall -Wno-format-y2k -W \
	-Wstrict-prototypes -Wmissing-prototypes \
	-Wpointer-arith -Wreturn-type -Wcast-qual \
	-Wbad-function-cast -Wchar-subscripts -Winline \
	-Wswitch -Wshadow -Wcast-align -Wnested-externs \
	-Wredundant-decls -std=c99
CFLAGS+= ${WARNINGS}

MAKEOBJDIR?= ${.CURDIR}
BINDIR?=     /usr/local/bin
MANDIR?=     /usr/local/man/man

SHLIBDIR?= /usr/local/share/pkvmdump/lib

pkvm:	pkvm.in
	sed -e "s|@SHLIBDIR@|${SHLIBDIR}|g" ${.TARGET}.in > ${.TARGET}

.include <bsd.prog.mk>
